<template>
	<view>
		<view class="flex space" style="display:flex; flex-wrap:wrap; padding: 30upx 30upx 0px 30upx;">
			<block v-for="(value,key) in datasa" :key="key">
				<view class="pb10 mb15" style="width:31%; position: relative; border-radius:20rpx;"
					@click="detail(value.id,0)">
					<image class="vod-img" mode="aspectFill" :src="value.img"></image>
					<view class="vod-name text-over">{{value.name}}</view>
					<view class="vod-nums flex">
						<view class="ft12">{{value.totalnum}}</view>
						<view class="ft12 flex alcenter"><zui-svg-icon icon="eye" style="margin-right: 5rpx;"
								size="14" />{{value.views}}</view>
					</view>
				</view>
			</block>
		</view>
	</view>
</template>

<script>
	export default {
		props: ['datasa'],
		data() {
			return {
				isLogin: false,
			}
		},
		methods: {
			detail(vid, mid) {
				uni.navigateTo({
					url: '/pages/client/tuan/detail?vid=' + vid + '&mid=' + mid
				})
			}
		}
	}
</script>
<style scoped lang="scss">
	
</style>
<style>
	.vod-img {
		width: 100%;
		height: 280rpx;
		background: #F2F2F2;
		border-radius: 16upx;
	}

	.vod-name {
		font-size: 28rpx;
		margin-top: 8rpx;
	}

	.vod-nums {
		flex-direction: row;
		justify-content: space-between;
		color: #999;
		margin-top: 8rpx;
	}
</style>